/*public class Test {
}
class Example{
    String str = new String("good");
    char[ ] ch = { 'a' , 'b' , 'c' };
    public static void main(String args[]){
        Example ex = new Example();
        ex.change(ex.str,ex.ch);
        System.out.print(ex.str + " and ");
        System.out.print(ex.ch);
    }
    public void change(String str,char ch[ ]){
        str = "test ok";
        ch[0] = 'g';
    }
}


class SystemUtil{
    public static boolean isAdmin(String userId){
        return userId.toLowerCase()=="admin";
    }
    public static void main(String[] args){
        System.out.println(isAdmin("Admin"));
    }
}

    String s1="abc"+"def";//1
    String s2=new String（s1);//2
        if(s1.equals(s2))//3
        System.out.println(".equals succeeded");//4
        if(s1==s2)//5
        System.out.println("==succeeded");//6*/


/*
import java.*;
public class Test {
    private String userName ="admin";
    private String passWord ="123456";

    public  void loginLnfo(String userName,String passWord)throws UserNameException,PasswordException{
        if(!this.userName.equals(userName)){
            throw new UserNameException("用户名错误");
        }
        if(!this.passWord.equals(passWord)){
            throw new PasswordException("密码错误");
        }
        System.out.println("登陆成功");
    }
    public static void main(String[] args) {
          Test login =new Test();
         try{
             login.loginLnfo("admin","1234567");
         }catch(UserNameException e){
             e.printStackTrace();
             System.out.println("UserNameException");
         }catch (PasswordException e){
             e.printStackTrace();
             System.out.println("PasswordException");
         }
    }
}
*/
/*
public void getCustomerInfo() {
        try {
        // do something that may cause an Exception
        } catch (java.io.FileNotFoundException ex) {
        System.out.print("FileNotFoundException!");
        } catch (java.io.IOException ex) {
        System.out.print("IOException!");
        } catch (java.lang.Exception ex) {
        System.out.print("Exception!");
        }
        }
*/



















